<%@ page language="java" pageEncoding="UTF-8"%>
<%@include file="/include/head.jsp" %>
<html>
  <head>
    <title>modify</title>
  </head>
  
  <body>
	<h1 align="center">Modify:</h1><hr/>
		<center> 
			<form action="<%=contextPath%>/modify.do" method="post">
				<input type="hidden" name="user.id" value="${user.id}"/>
				<table align="center" >
					<tr>
						<td align="center">UserName：</td>
						<td><input type="text" name="user.username" value="${user.username}" /></td>
					</tr>
					<tr>
						<td align="center">Password：</td>
						<td><input type="text" name="user.password" value="${user.password}" /></td>
					</tr>
					<tr>
						<td align="center">Email：</td>
						<td><input type="text" name="user.email" value="${user.email}" /></td>
					</tr>
					<tr>
						<td align="center">Age：</td>
						<td><input type="text" name="user.age" value="${user.age}" /></td>
					</tr>
					<tr>
						<td align="center">Sex：</td>
						<td>
							<input type="radio" name="user.sex" value="1" ${user.sex==1?"checked":""} />男
							<input type="radio" name="user.sex" value="0" ${user.sex==0?"checked":""}/>女
						</td>
					</tr>
				</table>
				<div align="center">
					<span id="upinfo" style="color: red">
						<s:property value="#session['modifyError']"/>
					</span>
				</div>
				<input type="submit" value="modify" />
				<input type="button" name="Submit" onclick="javascript:history.back(-1);" value="back"/>
			</form>
		</center>
	</body>
</html>
